
module.exports = {

    imgInfoApi: {
        /**
         * @param {string} data 传入img的绝对地址
         * @return {array}
         */
        getImgRect: (data) => {

            var width;
            var height;
            var img = new Image()
            var path = data


            img.src = path
            

            width = img.width()
            height = img.height()

            return [width, height]
        },
    }

}